package com.sz.netty.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Netty Configuration Properties
 */
@Data
@Component
@ConfigurationProperties(prefix = "netty")
public class NettyConfig {
    
    /**
     * Netty server port
     */
    private int port = 8089;
    
    /**
     * Netty server boss thread count
     */
    private int bossThreadCount = 1;
    
    /**
     * Netty server worker thread count
     */
    private int workerThreadCount = 4;
}